package com.eco.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eco.bean.Expenses;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ExpensesMapper extends BaseMapper<Expenses> {

    @Select("SELECT * FROM expenses WHERE category = #{category}")
    Expenses selectByCategory(@Param("category") String category);
}